package com.bdsy.business.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.bdsy.business.model.Order;
import com.bdsy.business.model.ZlOrder;
import com.bdsy.business.model.ZlOrderDetails;

public interface ZlOrderService {

	public boolean insert(ZlOrder zlOrder);
	
	public boolean updateZlOrderStatus(ZlOrder zlOrder);
	
	public List<Map> selectZlOrderById(String userId);
	
	//根据用户ID 状态 查询订单（只有租赁订单信息）
	public List<Map> zlOrderListById(String userId,int zlStatus,int status);
	
	//根据用户ID 状态 查询租赁订单编号
	public List<String> selectZlOrderId(@Param(value="userId")String userId,@Param(value="zlStatus")int zlStatus);
	
	//根据订单编号查询订单信息
	public List<Map> selectZlOrderByOrderId(String orderId,int status);
	
	public List<Map> zlOrderListByIdStatus(String userId,int status);
	
	public boolean deleteZlOrderById(List<String> pIds);


	//已完成租赁订单 
	public int azlCount(String userId);
	//未完成租赁订单 
	public int nzlCount(String userId);
	
	public List<Map> zsaleStatis(String userId);
	
	//根据用户查询未完成租赁订单信息
	public List<Map> selectNZlOrderById(String userId);
	
	public List<Map> areadyZlOrderList(String userId,int shopTypeId,int lx,int qx);

	public List<Map> nareadyZlOrderList(String userId,int shopTypeId,int zlStatus,int status,int qx);

	public List<Map> zorderListByUserIdStatus(String userId,int shopTypeId,int zlStatus,int status);
}
